from django.conf.urls import url
from . import views

urlpatterns = [
    # 商品列表
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$',views.ListGoodsView.as_view()),
    # 热销商品
    url(r'^hot/(?P<category_id>\d+)/$',views.HotGoodsView.as_view()),# 热销商品
    # 商品详情
    url(r'^detail/(?P<sku_id>\d+)/$',views.DetailGoodsView.as_view()),
    # 统计访问记录
    url(r'^visit/(?P<category_id>\d+)/$',views.VisitGoodsView.as_view()),
    # 渲染商品评价界面
    url(r'^comments/(?P<sku_id>\d+)/$',views.GetGoodsCommentView.as_view()),

   ]